<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="commun.xsl"/>
	<xsl:import href="template_name.xsl"/>
	<xsl:variable name="CONTEXTE">
		<xsl:choose>
			<xsl:when test="$NUMEROCOMPTE!=''">update</xsl:when>
			<xsl:otherwise>create</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	<!-- template js -->
	<xsl:template name="js.module.sheet">
		<script language="JavaScript" src="application/js/compteEdition.js" type="text/javascript"/>
	</xsl:template>
	<!-- template principal -->
	<xsl:template name="Contenu">
		<center>
			<br/>
			<form method="POST" action="#" onsubmit="return soumettre(this);">
				<input type="hidden" name="mode" id="mode" value="{$CONTEXTE}"/>
				<table class="formulaire">
					<tr>
						<th>
							<xsl:value-of select="$LBL.NUMEROCOMPTE"/>
						</th>
						<td>
							<input type="text" name="numeroCompte" id="numeroCompte" value="{$NUMEROCOMPTE}">
								<xsl:if test="$NUMEROCOMPTE!=''">
									<xsl:attribute name="readonly">readonly</xsl:attribute>
								</xsl:if>
							</input>
						</td>
					</tr>
					<tr>
						<th>
							<xsl:value-of select="$LBL.DESCRIPTION"/>
						</th>
						<td>
							<input type="text" name="libelle" id="libelle" value="{/root/data/Comptes/libelle}"/>
						</td>
					</tr>
					<tr>
						<th>
							<xsl:value-of select="$LBL.SOLDEBASE"/>
						</th>
						<td>
							<input type="text" name="solde" id="solde" class="numerique" size="10" value="{/root/data/Comptes/solde}"/>
						</td>
					</tr>
					<tr align="center">
						<td colspan="2">
							<input class="bouton" type="submit" name="valider" value="Valider"/>
						</td>
					</tr>
				</table>
			</form>
		</center>
	</xsl:template>
</xsl:stylesheet>
